﻿Public Class EditWorkshopA
    Inherits System.Web.UI.Page
    Private Shared prevPage As String = String.Empty
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If (Not IsPostBack) Then
            prevPage = Request.UrlReferrer.ToString()
        End If


    End Sub

    

  
    

    Protected Sub backButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles backButton.Click
        Response.Redirect(prevPage)
    End Sub


    Protected Sub workshopDeleteButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles deleteWorkshopButton.Click
        SqlDataSource2.Delete()
        DetailsView1.DeleteItem()

        Response.Redirect("/User_View/AdminView/AdminHome.aspx")

    End Sub

End Class